import request from '@/utils/request'

// 保存文章
export function saveBT(data) {
  return request({
    url: '/blog/savaBT',
    method: 'post',
    data: data
  })
}

export function temporarySave(data) {
  return request({
    url: '/blog/temporarySave',
    method: 'post',
    data: data
  })
}
export function getByTitle(title) {
  return request({
    url: '/blog/getByTitle?title='+title,
    method: 'get',
  })
}

export function getByPage(data) {
  return request({
    url: data,
    method: 'get',
  })
}

export function logicDeleteBlog(id) {
  return request({
    url: '/blog/logicDeleteBlog?id=' +id,
    method: 'delete',
  })
}

export function deleteNote(id) {
  return request({
    url: '/blog/deleteBlog?id=' +id,
    method: 'delete',
  })
}

export function recoveryBlog(id) {
  return request({
    url: '/blog/recoveryBlog?id=' + +id,
    method: 'get',
  })
}



